chore: untrack committed Python bytecode - #121
Merged
Merged
Conversation
Ten `.pyc` files under `scripts/__pycache__/` and `tests/__pycache__/` were committed, and `__pycache__/` was not in `.gitignore`. A `.pyc` embeds the source mtime and the interpreter version, so every test run rewrote them and `git status` reported ten modified files. The repo was dirty permanently, every diff carried binary noise, and a real change here would be easy to miss among them. - `git rm --cached` the ten files (they stay on disk, regenerated on demand) - ignore `__pycache__/` and `*.py[cod]` Refs JorisJonkers-dev/workspace#60 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPnwbKr1Ex9iXAtv6TThAU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ten
.pycfiles underscripts/__pycache__/andtests/__pycache__/were committed, and__pycache__/was not in.gitignore.A
.pycembeds the source mtime and the interpreter version, so every test run rewrote them andgit statusreported ten modified files. This repo was dirty permanently, every diff carried binary noise, and a real change would be easy to lose among them.Changes
git rm --cachedthe ten files — they stay on disk and are regenerated on demand__pycache__/and*.py[cod]Nothing imports the bytecode; Python regenerates it. Found while sweeping all 30 submodules for #60, which had only named four repos with untracked
.claude/— this one was dirty for an unrelated and worse reason.Refs JorisJonkers-dev/workspace#60